package com.rem.hutool.my4IO;

import cn.hutool.core.io.FileTypeUtil;
import cn.hutool.core.io.FileUtil;

import java.io.File;

/**
 * 文件类型判断
 *
 * @author Rem
 * @date 2020-08-19
 */

public class FileTypeUtilDemo {

    public static void main(String[] args) {
        //fileSuffix();
    }

    private static void fileSuffix() {
        File file = FileUtil.file("../../src/main/resources/static/name.txt");
        String type = FileTypeUtil.getType(file);
        System.err.println(type);
    }

}



